package com.wntms.gps.service.impl;

import java.util.List;

import com.wntms.gps.dao.CustomerInDao;
import com.wntms.gps.service.ICustomerInService;
import com.wntms.gps.pojo.CustomerIn;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 收货客户信息Service业务层处理
 * 
 * @author group 4
 * @date 2022-11-22
 */
@Service
public class CustomerInServiceImpl implements ICustomerInService
{
    @Autowired
    private CustomerInDao customerInDao;

    /**
     * 查询收货客户信息
     * 
     * @param id 收货客户信息主键
     * @return 收货客户信息
     */
    @Override
    public CustomerIn selectCustomerInById(Long id)
    {
        return customerInDao.selectCustomerInById(id);
    }

    /**
     * 查询收货客户信息列表
     * 
     * @param customerIn 收货客户信息
     * @return 收货客户信息
     */
    @Override
    public List<CustomerIn> selectCustomerInList(CustomerIn customerIn)
    {
        return customerInDao.selectCustomerInList(customerIn);
    }

    /**
     * 新增收货客户信息
     * 
     * @param customerIn 收货客户信息
     * @return 结果
     */
    @Override
    public int insertCustomerIn(CustomerIn customerIn)
    {
        return customerInDao.insertCustomerIn(customerIn);
    }

    /**
     * 修改收货客户信息
     * 
     * @param customerIn 收货客户信息
     * @return 结果
     */
    @Override
    public int updateCustomerIn(CustomerIn customerIn)
    {
        return customerInDao.updateCustomerIn(customerIn);
    }

    /**
     * 批量删除收货客户信息
     * 
     * @param ids 需要删除的收货客户信息主键
     * @return 结果
     */
    @Override
    public int deleteCustomerInByIds(Long[] ids)
    {
        return customerInDao.deleteCustomerInByIds(ids);
    }

    /**
     * 删除收货客户信息信息
     * 
     * @param id 收货客户信息主键
     * @return 结果
     */
    @Override
    public int deleteCustomerInById(Long id)
    {
        return customerInDao.deleteCustomerInById(id);
    }
}
